package com.cropdoctor.service.impl;

import com.cropdoctor.mapper.SysRoleMapper;
import com.cropdoctor.model.po.SysRolePo;
import com.cropdoctor.mybatisplus.BaseServiceImpl;
import com.cropdoctor.service.SysRoleService;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description: 【 用户角色表 Service接口实现类 】
 */
@Service
public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleMapper, SysRolePo> implements SysRoleService {


    @Override
    public List<SysRolePo> selectByUser(Integer userId) {
        return baseMapper.selectByUser(userId);
    }
}
